﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gerencial_Fisio_Nutry.NotaInterna
{
    public class Conjunto
    {
        public List<itemInterno> itensInterno;
        public Conjunto()
        {
            itensInterno = new List<itemInterno>();
        }
        public class itemInterno
        {
            public itemInterno()
            {
                notas = new List<NotaInterna>();
            }
            public int cod_produto;
            public string descricao;
            public string referencia;
            public double precoSaida;
            public List<NotaInterna> notas;
            public class NotaInterna
            {
                #region info da nota
                public string id;// character varying NOT NULL,
                public int nnf;// integer NOT NULL,
                public int cuf;// integer NOT NULL,
                public string cnf;//character varying NOT NULL,
                public string natop;//character varying NOT NULL,
                public int indpag;//integer NOT NULL,
                public int mod;// integer;// NOT NULL,
                public int serie;//integer NOT NULL,
                public DateTime demi;//date NOT NULL,
                public DateTime dsaient;// date NOT NULL,
                public int tpnf;// integer NOT NULL,
                public string cmunfg;//character;// varying NOT NULL,
                public int tpimp;// integer NOT NULL,
                public int tpemis;//integer NOT NULL,
                public int cdv;//integer NOT NULL,
                public int tpamb;//integer NOT NULL,
                public int finnfe;// integer NOT NULL,
                public int procemi;// integer NOT NULL,
                public string verproc;// character varying NOT NULL,
                public double vBC;// double precision NOT NULL,
                public double vICMS;// double precision NOT NULL,
                public double vBCST;// double precision NOT NULL,
                public double vST;// double precision NOT NULL,
                public double vProd;// double precision NOT NULL,
                public double vFrete;// double precision NOT NULL,
                public double vSeg;// double precision NOT NULL,
                public double vDesc;// double precision NOT NULL,
                public double vII;// double precision NOT NULL,
                public double vIPI;// double precision NOT NULL,
                public double vPIS;// double precision NOT NULL,
                public double vCOFINS;// double precision NOT NULL,
                public double vOutro;// double precision NOT NULL,
                public double vNF;// double precision NOT NULL,
                public int nfat;// integer NOT NULL,
                public double vorig;// double precision NOT NULL,
                public double vliq;// double precision NOT NULL,
#endregion
                public double quantidadeNota;
                public double valorCompra;
                public DateTime datavalidade;
                public Nota.FornecedorNota fornec;

                public NotaInterna()
                {
                    fornec = new Nota.FornecedorNota();
                }
            }
            public double descontoLimite;
            public string unidade;
            public double quantidade;
            public string segmento;
            public int CFOP;
            public string NCM;
        }
    }
}
